package com.example.roadeyeserver.controller;

import com.example.roadeyeserver.entity.vo.HolidayVO;
import com.example.roadeyeserver.enums.HolidayEnum;
import com.example.roadeyeserver.result.Result;
import com.example.roadeyeserver.util.ResultUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("holidayInfo")
public class HolidayInfoController {

    @PostMapping("getHolidayList")
    public Result<List<HolidayVO>> getHolidayList() {
        return ResultUtil.success(HolidayEnum.getHolidayList());
    }

}
